/**
 * 用于封装请求的方法和url值;
 * 2019-11-21
 */
const CONTACT_API = {
    //获取联系人列表
    getContactList: {
        method: 'get',
        url: '/contactList'
    },
    //新建联系人 form-data
    newContactForm: {
        method: 'post',
        url: '/contact/new/form'

    },
    //新建联系人 application/json
    newContactJson: {
        method: 'post',
        url: '/contact/new/json'
    },
    editContact: {
        method: 'put',
        url: '/contact/edit'
    },
    deleteContact: {
        method: 'delete',
        url: '/contact'
    }
}

export default CONTACT_API